#include<iostream> 
#include<string.h>
using namespace std;

int main()
{
    char *p[10]    ;
    for(int i=0;i<10;i++)
    {
        char x = 'a' ;
        x = x + i;
        p[i] = &x;
        //cout<<"&x = "<<&x<<endl;
        printf("&x = %ld\n",&x);
        cout<<*p[i]<<endl;
    }
    
    cout<<endl;
    for(int i=0;i<10;i++)
    {
        cout<<*p[i]<<endl;
    }
    system("pause");
    return 0;
}
